package com.song.tools.songtest.beans.poi;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.converters.localdatetime.LocalDateTimeStringConverter;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户角色关系表导出DTO
 * </p>
 *
 * @author song tools
 * @since 2024-07-09
 */
@Data
public class SysRoleUserExportDto implements Serializable {
    @Serial
    private static final long serialVersionUID = -1;

    /**
     * 角色ID
     */
    @ExcelProperty("角色ID")
    private Long roleId;
    /**
     * 用户ID
     */
    @ExcelProperty("用户ID")
    private Long userId;
    /**
     * 备注
     */
    @ExcelProperty("备注")
    private String remark;
    /**
     * 自增主键
     */
    @ExcelProperty("自增主键")
    private Long id;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", converter = LocalDateTimeStringConverter.class)
    @ColumnWidth(22)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间", converter = LocalDateTimeStringConverter.class)
    @ColumnWidth(22)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
